using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class V1_Web_Base_Config_Site_InfoMap : EntityTypeConfiguration<V1_Web_Base_Config_Site_Info>
    {
        public V1_Web_Base_Config_Site_InfoMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("V1_Web_Base_Config_Site_Info");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.SortId).HasColumnName("SortId");
            this.Property(t => t.ParentId).HasColumnName("ParentId");
            this.Property(t => t.NodeId).HasColumnName("NodeId");
            this.Property(t => t.Title).HasColumnName("Title");
            this.Property(t => t.Content).HasColumnName("Content");
            this.Property(t => t.Icon).HasColumnName("Icon");
            this.Property(t => t.Logo).HasColumnName("Logo");
            this.Property(t => t.Tag).HasColumnName("Tag");
            this.Property(t => t.Keyword).HasColumnName("Keyword");
            this.Property(t => t.Description).HasColumnName("Description");
            this.Property(t => t.FlagView).HasColumnName("FlagView");
            this.Property(t => t.FlagPass).HasColumnName("FlagPass");
            this.Property(t => t.FlagStop).HasColumnName("FlagStop");
            this.Property(t => t.FlagStatus).HasColumnName("FlagStatus");
            this.Property(t => t.TemplateHome).HasColumnName("TemplateHome");
            this.Property(t => t.TemplateIndex).HasColumnName("TemplateIndex");
            this.Property(t => t.TemplateNode).HasColumnName("TemplateNode");
            this.Property(t => t.TemplateList).HasColumnName("TemplateList");
            this.Property(t => t.TemplateView).HasColumnName("TemplateView");
            this.Property(t => t.TemplateSeek).HasColumnName("TemplateSeek");
            this.Property(t => t.TemplateTop).HasColumnName("TemplateTop");
        }
    }
}
